def foo():
    bar()
def bar():
    pass
import dis
print(dis.dis(foo))